<div id="main-content">
    <div class="container">
    	<div class="row">
    		<div id="content" class="col-lg-12">
    			<!-- PAGE HEADER-->
    			<div class="row">
    				<div class="col-sm-12">
                        <div class="page-header">
    						<div class="clearfix">
    							<h3 class="content-title pull-left">Thêm danh mục mới</h3>
    						</div>
    						<div class="description">Xin mời nhập theo mẫu bên dưới</div>
   					    </div>
   				     </div>
    			</div>
                <!-- DATA TABLES -->
						<div class="row">
							<div class="col-md-12">
								<!-- BOX -->
								<div class="box border green">
									<div class="box-title">
										<h4><i class="fa fa-table"></i>Cài đặt trang web</h4>
										<div class="tools hidden-xs">
											<a href="javascript:;" data-toggle="tooltip" title="Ẩn đi" class="collapse">
												<i class="fa fa-chevron-up"></i>
											</a>
										</div>
									</div>
									<div class="box-body">
                                        <!-- Start Form -->
                                         <?php echo validation_errors(); ?>
                                        <form method="POST" class="form-horizontal row-border" action="<?php echo base_url().'admin/xuly/setting/list/'.$this->uri->segment(5);?>">
										  <div class="form-group">
											 <label class="col-md-2 control-label">Url:</label> 
											 <div class="col-md-10"><input name="url" id="url" onkeyup="locdau();" type="text" value="<?php if(!empty($data)){echo $data->url;};?>" class="form-control" /></div>
                                          </div>
                                          <div class="form-group">
											 <label class="col-md-2 control-label">Tên trang web:</label> 
											 <div class="col-md-10"><input name="title" type="text" value="<?php if(!empty($data)){echo $data->title;};?>" class="form-control" /></div>
                                          </div>
                                         <div class="form-group">
											 <label class="col-md-2 control-label">Mô tả trang web:</label> 
											 <div class="col-md-10"><textarea class="form-control" name="metades"><?php if(!empty($data)){echo $data->metades;};?></textarea>
                                          </div>
                                          </div>
                                          <div class="form-group">
											 <label class="col-md-2 control-label">Từ khóa trang web:</label> 
											 <div class="col-md-10"><textarea class="form-control" name="metakey"><?php if(!empty($data)){echo $data->metakey;};?></textarea>
                                          </div>
                                          </div>
                                          <div class="form-group">
                                            <label class="col-md-2 control-label">Logo:</label> 
											 <div class="col-md-6"><input name="logo" readonly="readonly" id="xFilePath" type="text" value="<?php if(!empty($data)){echo $data->logo;};?>" class="form-control" /></div><a href="javascript://" class="btn btn-success" onclick="BrowseServer();" title="Tải ảnh lên"><i class="fa fa-edit"></i> Tải ảnh lên</a>
                                          </div>
                                          <div class="form-group">
                                            <label class="col-md-2 control-label">Chủ quản:</label> 
											 <div class="col-md-6"><input name="master" type="text" value="<?php if(!empty($data)){echo $data->master;};?>" class="form-control" /></div>
                                          </div>
                                          <div class="form-group">
                                            <label class="col-md-2 control-label">Điện thoại:</label> 
											 <div class="col-md-6"><input name="phone" type="text" value="<?php if(!empty($data)){echo $data->phone;};?>" class="form-control" /></div>
                                          </div>
                                          <div class="form-group">
                                            <label class="col-md-2 control-label">Địa chỉ:</label> 
											 <div class="col-md-6"><input name="address" type="text" value="<?php if(!empty($data)){echo $data->address;};?>" class="form-control" /></div>
                                          </div>
                                          <div class="form-group">
                                            <label class="col-md-2 control-label">Fax:</label> 
											 <div class="col-md-6"><input name="fax" type="text" value="<?php if(!empty($data)){echo $data->fax;};?>" class="form-control" /></div>
                                          </div>
                                          <div class="form-group">
                                            <label class="col-md-2 control-label">Email:</label> 
											 <div class="col-md-6"><input name="email" type="text" value="<?php if(!empty($data)){echo $data->email;};?>" class="form-control" /></div>
                                          </div>
                                          <div class="form-group">
                                            <label class="col-md-2 control-label">HomePhone:</label> 
											 <div class="col-md-6"><input name="homemobile" type="text" value="<?php if(!empty($data)){echo $data->homemobile;};?>" class="form-control" /></div>
                                          </div>
                                          <input class="guidulieu btn btn-success" type="submit" value="Lưu"/>
										</form>
                                        <!-- End Form -->
                                    </div>
								</div>
								<!-- /BOX -->
							</div>
						</div>
						<!-- /DATA TABLES -->
    			<!-- /PAGE HEADER -->
    		</div>
    	</div>
    </div>
</div>